package cc.wsyw126.java.nowcoder.offernet;

/**
 * Created by dp on 17/3/25.
 */

import java.util.HashMap;
import java.util.Scanner;

public class net1 {
    public static void main(String[] args) {
        net1 net1 = new net1();
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        String[] split = s.split(" ");
        int n = Integer.valueOf(split[0]), k =Integer.valueOf(split[1]);


        String s1 = sc.nextLine();
        String[] split1 = s1.split(" ");
        HashMap<Integer, Integer> map = new HashMap<>();
        Node root = net1.new Node();
        Node position = root;
        for (int i = 0; i < split1.length; i++) {
            Node temp = net1.new Node();
            temp.value = Integer.valueOf(split1[i]);
            position.next = temp;
            position = temp;
        }

        while (k>0) {
            position = root.next;
            int temp = position.value;
            while (position!=null) {
                Node next = position.next;
                if (next!=null) {
                    position.value = (position.value + next.value)%100;
                } else {
                    position.value = (position.value + temp)%100;
                }
                position = next;
            }
            k--;
        }

        StringBuffer sb = new StringBuffer();
        position = root.next;
        while (position!=null) {
            sb.append(position.value + " ");
            position = position.next;
        }


        String substring = sb.substring(0, sb.length() - 1);
        System.out.print(substring);
    }

    class Node{
        int value = 0;
        Node next = null;
    }
}

